/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Queens;

/**
 *
 * @author User
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        Queen Last=null;
        Queen Last1=null;
        for(int i=1;i<=8;i++)
        {
            Last = new Queen(i,Last);
            Last.Find();
        }
        Last.paint();
        System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++");
        int count=1;
        while(Last.Check())
        {
        Last.paint();
        count++;
        System.out.println("+++++++++++++++++++++++++++++++++++++++++++++++++");
        }
        System.out.println(count);
}
}
